package com.yoyo.yoyoplat.bean;

import com.yoyo.yoyoplat.base.BaseBean;

import java.util.List;

public class AdInfoBean extends BaseBean<AdInfoBean.DTO> {
    //跳转H5 页面(落地页)
    public static final int TYPE_H5 = 0;
    //下载软件
    public static final int TYPE_DOWNLOAD = 1;
    //跳转应用市场下载软件
    public static final int TYPE_MARKET = 2;
    //deeplinkUrl
    public static final int TYPE_ACTION = 3;

    public static class DTO {
        private List<AdInfoBean.DO> adList;

        public List<DO> getAdList() {
            return adList;
        }

        public void setAdList(List<DO> adList) {
            this.adList = adList;
        }
    }

    public static class DO {

        /**
         * adIcon : http://ali.cdn.pys5.com/bzyadidicon/AD00028_1566635087.png
         * app : {"deeplinkUrl":"http://ali.cdn.pys5.com/ca/2019-08-21-17-44-17-5d5d1271f41e3.apk"}
         * cType : 1
         * id : 533C1EA200C3BE60733C0F79ED253E96
         * imgs : [{"url":"http://ali.cdn.pys5.com/bzyadidimg/AD00028_1566635087.jpg"}]
         * key : 269c1cfc507048b2927b4fa03d900b76NEW.V1-2-10003-2-7-2
         * subTitle :
         * title :
         */

        private String adIcon;
        private AppBean app;
        /**
         * 动作类型
         * 0: 跳转H5 页面(落地页)
         * 1: 下载软件
         * 2: 跳转应用市场下载软件
         * 3: deeplinkUrl
         */
        private int cType;
        private String id;
        private String key;
        private String subTitle;
        private String title;
        /**
         * 落地页信息
         * 当且仅当cType = 0 时有值
         */
        private LandingPageBean landingPage;
        private String splash;
        private List<ImgsBean> imgs;

        public String getAdIcon() {
            return adIcon;
        }

        public void setAdIcon(String adIcon) {
            this.adIcon = adIcon;
        }

        public AppBean getApp() {
            return app;
        }

        public void setApp(AppBean app) {
            this.app = app;
        }

        public int getCType() {
            return cType;
        }

        public void setCType(int cType) {
            this.cType = cType;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getSubTitle() {
            return subTitle;
        }

        public void setSubTitle(String subTitle) {
            this.subTitle = subTitle;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public List<ImgsBean> getImgs() {
            return imgs;
        }

        public void setImgs(List<ImgsBean> imgs) {
            this.imgs = imgs;
        }

        public LandingPageBean getLandingPage() {
            return landingPage;
        }

        public void setLandingPage(LandingPageBean landingPage) {
            this.landingPage = landingPage;
        }

        public String getSplash() {
            return splash;
        }

        public void setSplash(String splash) {
            this.splash = splash;
        }
    }
}
